#region Using directives
using System;
using System.Data;

using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{

	/*
	 * Created by Web Smart Create Code Tool
	 * At 2005-4-23
	 */

	//=========MMenu  ============================
	[System.ComponentModel.DesignerCategory("Code")]
    public class MMenuDEL : DataSet, IDataEntity
	{
		//=========mMenu ============================
		public const string TABLENAME_MMENU="mMenu";
		public const string RECID="RecID";
		public const string MENUID="MenuID";
		public const string MENUNAME="MenuName";
		public const string PROGNAME="ProgName";
        public const string NET_PROGNAME = "Net_ProgName";
		public const string ICONNAME="IconName";
		public const string SUBMENU="SubMenu";
		public const string PARAMETER="Parameter";
        public const string NET_PARAMETER = "Net_Parameter";
		public const string PARENTMENUID="ParentMenuID";
		public const string PASSWORD="Password";
		public const string PERMIT01="Permit01";
		public const string PERMIT02="Permit02";
		public const string PERMIT03="Permit03";
		public const string PERMIT04="Permit04";
		public const string PERMIT05="Permit05";
		public const string PERMIT06="Permit06";
		public const string PERMIT07="Permit07";
		public const string PERMIT08="Permit08";
		public const string PERMIT09="Permit09";
		public const string PERMIT10="Permit10";
		public const string PERMIT11="Permit11";
		public const string PERMIT12="Permit12";
		public const string PERMIT13="Permit13";
		public const string PERMIT14="Permit14";
		public const string PERMIT15="Permit15";
		public const string PERMIT16="Permit16";
		public const string PERMIT17="Permit17";
		public const string PERMIT18="Permit18";
		public const string PERMIT19="Permit19";
		public const string PERMIT20="Permit20";
		public const string PERMIT21="Permit21";
		public const string PERMIT22="Permit22";
		public const string PERMIT23="Permit23";
		public const string PERMIT24="Permit24";
		public const string PERMIT25="Permit25";
		public const string PERMIT26="Permit26";
		public const string PERMIT27="Permit27";
		public const string PERMIT28="Permit28";
		public const string PERMIT29="Permit29";
		public const string PERMIT30="Permit30";
		public const string NOTUSED="NotUsed";
		public const string NEEDPRINT="NeedPrint";
		public const string ISWHOLESALE="IsWholesale";
		public const string ISDISTRIBUTION="IsDistribution";
		public const string PROGSTATUS="ProgStatus";
		public const string RECSTAMP="RecStamp";
		public const string PASSWORDLEVEL="PasswordLevel";
        public const string FORMSTYLE = "FormStyle";
        public const string NAMESPACE = "NameSpace";
        public const string VISIBLE = "Visible";
        public const string MAXOPENWINDOWSNUM = "MaxOpenWindowsNum";

        ////public const string URL="Url";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }

		public MMenuDEL()
		{
			//Create mMenu structure
			CreatemMenuStructure();

		}

		//=========mMenu============================
		private void CreatemMenuStructure()
		{
			DataTable table;
			DataColumnCollection DCC;
			DataColumn DC=new DataColumn();
			table=new DataTable (TABLENAME_MMENU);
			DCC=table.Columns;

			DC=new DataColumn(RECID,typeof(System.Int32));
			DCC.Add(DC);

			DC=new DataColumn(MENUID,typeof(System.String));
            DC.MaxLength = 12;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(MENUNAME,typeof(System.String));
            DC.MaxLength = 255;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(PROGNAME,typeof(System.String));
            DC.MaxLength = 255;
            DC.DefaultValue = "";
			DCC.Add(DC);

            DC = new DataColumn(NET_PROGNAME, typeof(System.String));
            DC.MaxLength = 255;
            DC.DefaultValue = "";
            DCC.Add(DC);

			DC=new DataColumn(ICONNAME,typeof(System.String));
            DC.MaxLength = 10;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(SUBMENU,typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

			DC = new DataColumn(PARAMETER,typeof(System.Int32));
            DC.DefaultValue = 0; 
			DCC.Add(DC);

            DC = new DataColumn(NET_PARAMETER, typeof(System.Int32));
            DC.DefaultValue = 0;
            DCC.Add(DC);

			DC=new DataColumn(PARENTMENUID,typeof(System.String));
            DC.MaxLength = 9;
            DC.DefaultValue = "";
			DCC.Add(DC);

			DC=new DataColumn(PASSWORD,typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

			DC=new DataColumn(PERMIT01,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT02,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT03,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT04,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT05,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT06,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT07,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT08,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT09,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT10,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT11,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT12,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT13,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT14,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT15,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT16,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT17,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT18,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT19,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT20,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT21,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT22,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT23,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT24,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT25,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT26,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT27,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT28,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT29,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(PERMIT30,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "N";
			DCC.Add(DC);

			DC=new DataColumn(NOTUSED,typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

			DC=new DataColumn(NEEDPRINT,typeof(System.Boolean));
            DC.DefaultValue = false;
			DCC.Add(DC);

			DC=new DataColumn(ISWHOLESALE,typeof(System.Boolean));
            DC.DefaultValue = true;
			DCC.Add(DC);

			DC=new DataColumn(ISDISTRIBUTION,typeof(System.Boolean));
            DC.DefaultValue = true;
			DCC.Add(DC);

			DC=new DataColumn(PROGSTATUS,typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "F";
			DCC.Add(DC);

			DC=new DataColumn(RECSTAMP,typeof(System.Byte[]));
			DCC.Add(DC);

			DC=new DataColumn(PASSWORDLEVEL,typeof(System.Int32));
            DC.DefaultValue = 0;
			DCC.Add(DC);

			DC=new DataColumn(FORMSTYLE, typeof(System.String));
            DC.MaxLength = 1;
            DC.DefaultValue = "V";
			DCC.Add(DC);

            DC = new DataColumn(NAMESPACE, typeof(System.String));
            DC.MaxLength = 150;
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(VISIBLE, typeof(System.Boolean));
            DC.DefaultValue = true;
            DCC.Add(DC);

            DC = new DataColumn(MAXOPENWINDOWSNUM, typeof(System.Int32));
            DC.DefaultValue = 1;
            DCC.Add(DC);

			this.Tables.Add (table);
		}

	}
}